﻿using System;
using System.Data;
using System.Data.Common;

namespace DreamCube.Framework.DataAccess.Basic
{
    [AttributeUsage(AttributeTargets.Class)]
    public class DBTableAttribute : Attribute
    {
        #region "属性"

        /// <summary>
        /// 对应的表名
        /// </summary>
        public String TableName
        {
            get;
            set;
        }
       
        #endregion

        #region "方法"

         /// <summary>
        /// 第一个参数表示数据库列名，第二个参数表示引用此标签的属性的名称
        /// </summary>
        /// <param name="tableName"></param>
        public DBTableAttribute(String tableName)
        {
            this.TableName = tableName;
        }

        #endregion
    }
}
